def logging(fn):
    def inner(*args,**kwargs):
        print('日志输出')
        return fn(*args,**kwargs)
    return inner

@logging
def sum_num(num1,num2):
    result = num1 + num2
    return result


print(sum_num(10, 20))